|
| ||||||||||
| Tags: code, javascript, php, url |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Need JavaScript Code to open URL
1) Enter the URL: user enters: http://www.abc.com 2) 2) Enter the city: user enters: Chico 3) 3) Enter the state: user enters: MM [SUBMIT] 4) Then the following window opens: http://www.abc.com I am trying it but encountered with lots of error. Can anyone suggest ma a code for this ? |
|
#2
| |||
| |||
| Re: Need JavaScript Code to open URL
You have to use window.open method in your code to open web application in a new window after Submitting. To do this you have to use following syntax: Code: Open (URL, windowName[, windowFeatures]) To open URL of the page to open in the new window. window.open(http://www.abc.com","mywindow); |
|
#3
| |||
| |||
| Re: Need JavaScript Code to open URL
According to me the coding is much easier in PHP. So try it with following PHP code: Quote:
|
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Need JavaScript Code to open URL" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calling JavaScript from Managed Code | Computer_Freak | Tips & Tweaks | 1 | 03-08-2010 03:31 PM |
| How to Open Popup Window in Javascript? | Soumen | Software Development | 4 | 07-02-2010 03:02 AM |
| How to Open PDF with JavaScript? | Silent~Kid | Software Development | 4 | 06-02-2010 02:28 AM |
| Javascript code in servlet | Aaliya Seth | Software Development | 5 | 14-01-2010 06:02 PM |
| How to convert Javascript code to Html code | Bosch | Software Development | 3 | 21-09-2009 01:20 PM |