|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Concatenating
Hi,
Canīt figure this out :P document.write('<script language="vbscript"> window.navigate("http://www.google.com") </script>'); This doenst concatenate very well... Canīt see why... Thank you |
|
#2
|
|||
|
|||
|
Hey neptuno!
I can't see why eather..but I found way to bypass that. Declare a variable: var bla = '<script language="vbscript"> window.navigate("http://www.google.com") </script>' then call document.write(bla); At least, until someone who knows more than me gives you a better solution!!. You can place all that in the same line, so it's not that bad after all....Good Luck... Anibal. |
|
#3
|
||||
|
||||
|
What's the purpose of the vbscript?
Are you trying to be prejudice towards IE users? ![]() <script type="Javascript"> window.location.href = "http://google.com"; </script> |
|
#4
|
|||
|
|||
|
God! Is that what was needed? One can use that directly onLoad or onClick.
What's the use of <script....> </script> ? Mother of Christ... Quote:
|
|
#5
|
||||
|
||||
|
I put the <script> tags there because I assumed you were putting that code in the <head> of the HTML
You could use <body onload="window.location.href='http://www.google.com';"> |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Concatenating |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|