ginerjm Posted September 19, 2023 Share Posted September 19, 2023 I know it's a piece of cake to use an anchor tag with the target attribute to open a new window for the href referenced. I want to do that using an input/submit tag instead of the anchor but can't remember/figure it out. Am I forgetting something or can it not be done. And if not, how would you accomplish this task? Quote Link to comment https://forums.phpfreaks.com/topic/317303-using-submit-to-open-a-new-page-in-a-new-window/ Share on other sites More sharing options...
Solution kicken Posted September 19, 2023 Solution Share Posted September 19, 2023 You can use target on a form tag also. <form method="post" target="_blank"> <input type="submit"> </form> Quote Link to comment https://forums.phpfreaks.com/topic/317303-using-submit-to-open-a-new-page-in-a-new-window/#findComment-1611966 Share on other sites More sharing options...
ginerjm Posted September 19, 2023 Author Share Posted September 19, 2023 Yes I did forget. Thx. Quote Link to comment https://forums.phpfreaks.com/topic/317303-using-submit-to-open-a-new-page-in-a-new-window/#findComment-1611967 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.