Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Opening new tab/browser in Javascript

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,53948
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Opening new tab/browser in Javascript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Opening new tab/browser in Javascript - 12/1/2007 4:52:41 AM   
  hamboy

 

Posts: 94
Score: 6
Joined: 7/11/2005
Status: offline
Hi does anyone know how to open a new browser (detect when using IE) or new tab (detect when using Firefox) and navigate to another website on button click?

I am trying to convert my vbscript to javascript. THis is what I had for vbscript:




      
 
 
Post #: 1
 
 RE: Opening new tab/browser in Javascript - 12/1/2007 6:03:52 AM   
  TNO


Posts: 1074
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
instead of button click you could use hyperlink click: <a href="blah.html" target="_blank">Submit</a>

IE6 will open a new window. IE7 and FF will open a new tab (for both browsers this can be overridden by the user in the options)

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to hamboy)
 
 
Post #: 2
 
 RE: Opening new tab/browser in Javascript - 12/1/2007 9:35:48 AM   
  hamboy

 

Posts: 94
Score: 6
Joined: 7/11/2005
Status: offline
that's a good idea.. is it possible to hide the new window, so it'll seem everything is done in the background automatically?

i need to call a javascript functino to get the entered data from the form, go to another website, fill in THAT form with the stored info

< Message edited by hamboy -- 12/1/2007 10:44:14 AM >

(in reply to TNO)
 
 
Post #: 3
 
 RE: Opening new tab/browser in Javascript - 12/1/2007 10:37:51 PM   
  TNO


Posts: 1074
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
hold on a sec..is this an HTML Application or a webpage?

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to hamboy)
 
 
Post #: 4
 
 RE: Opening new tab/browser in Javascript - 12/2/2007 6:06:32 AM   
  hamboy

 

Posts: 94
Score: 6
Joined: 7/11/2005
Status: offline
not sure what you mean by "html app or webpage", but I 'll be storing variables from the current form, and on the side, go to another webpage to fill in that webpage's form, with the variables I stored.
I wanted to make this process look automatic, by not showing the second website, and what' it's doing.

(in reply to TNO)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Opening new tab/browser in Javascript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts