Link to home
Start Free TrialLog in
Avatar of pnadakuditi
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><FORM><INPUT TYPE=&quot;hidden&quot; NAME=&quot;remoteSessionId&quot; VALUE=&quot;00002Er6QYYLNynw7O0aXnlh1mh:10uaq7rrh&quot;><INPUT TYPE=&quot;hidden&quot; NAME=&quot;pageName&quot; VALUE=&quot;Inbox&quot;><INPUT TYPE=&quot;hidden&quot; NAME=&quot;eventName&quot; VALUE=&quot;InboxRSEvent&quot;><INPUT TYPE=&quot;hidden&quot; NAME=&quot;marker&quot; VALUE=&quot;URL&quot;> </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....
Avatar of raj3060
raj3060
Flag of United States of America image

Move script inside HEAD tags..
Avatar of pnadakuditi
pnadakuditi

ASKER

tried moving into head tags...it didnt work....
ASKER CERTIFIED SOLUTION
Avatar of Lo-Tan
Lo-Tan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Not too different from above:

But you need to use document.write..
Instead window.write...
Can you tell me what the solution required to have been warranted an A?