javascript or php+html form
Page 1 of 1 • Share
- grimofdoomMember
- Forum Posts : 106
Member Since : 2012-03-06
I know how to make a html form with text box and submit button. But how do i get it to display the stuff from the text box on a another tab as html(the stuff in the text box is held with html page script) page,like the the w3school's "try it yourself" but pops into another tab.
- LGforumModerator
- Forum Posts : 77
Member Since : 2011-11-12
You can do that with JS, which is probably safer.
You can save a reference to a window that you open.
Sorry that's a bit of a shortened version, i'm in a rush.
But look into window.open method, it allows you to open another window and manipulate it, eg adding html to it from a textbox
You can save a reference to a window that you open.
- Code:
var new_window = window.open(window properties etc);
new_window.document.write(textbox value);
Sorry that's a bit of a shortened version, i'm in a rush.
But look into window.open method, it allows you to open another window and manipulate it, eg adding html to it from a textbox
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|