pnadakuditi
asked on
Help with Javascript/Popup
Can anyone please help me understand why having script tag in the text passed to the window.write method doesn't work. I have the following html which I need to put that into a new popup
<HTML> <BODY><SCRIPT></SCRIPT><FO RM><INPUT TYPE="hidden" NAME="remoteSessionId " VALUE="00002Er6QYYLNy nw7O0aXnlh 1mh:10uaq7 rrh"> <INPUT TYPE="hidden" NAME="pageName" VALUE="Inbox"><I NPUT TYPE="hidden" NAME="eventName" VALUE="InboxRSEvent&q uot;><INPU T TYPE="hidden" NAME="marker" VALUE="URL"> </FORM> <!-- URL --> </BODY> </HTML>
I'm doing a window.Open and using Window.Write(<above htmlt>)
Its working fine if I remove the <script></script> tags, but I need to have them as I've got a js function in the above html. Can anyone suggest me a workaround or a fix for this please....
<HTML> <BODY><SCRIPT></SCRIPT><FO
I'm doing a window.Open and using Window.Write(<above htmlt>)
Its working fine if I remove the <script></script> tags, but I need to have them as I've got a js function in the above html. Can anyone suggest me a workaround or a fix for this please....
Move script inside HEAD tags..
ASKER
tried moving into head tags...it didnt work....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Not too different from above:
But you need to use document.write..
Instead window.write...
But you need to use document.write..
Instead window.write...
Can you tell me what the solution required to have been warranted an A?