codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Trying to do two javascript actions on a single onlclick link  solidad at 19:30 on Wednesday, January 31, 2007
 

I am trying to do these 2 actions, and can't get the history.go to work. The idea is to go to site1, then imediately go back and open a new window (site2). I know this seems really strange, but it's a dirty workaround to get a hit counter working.

I tried the following with no success.

<a href="/site1" onclick="history.go(-1); window.open('/site2','newwin');><a/>

any ideas?








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  byte swapping in Perl
•  close window
•  Passing Variable To js File
•  Re: Compiling JAVA code in .NET?
•  managed nd unmanaged code..
•  Looking for free form submit php script?
•  horizontal scroll of images
•  Re: DHTML : popup slider using image
•  Re: Java question - zoom/selection


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007