SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: onmousedown function
-
Apr 17, 2007, 07:38 #1
- Join Date
- Nov 2006
- Posts
- 99
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
onmousedown function
i have an onmousedown function and i am looking for the correct way to write a get url [CODE
]function gotoPlace(i){
if(i==1){
//here i want to put the url
}
}[/CODE]
in other words how can i put this:
<a href="haifaSulptors/index.html" target="_blank">
into my function?
-
Apr 17, 2007, 10:29 #2
- Join Date
- Jan 2005
- Location
- Too far up north
- Posts
- 1,566
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
use
Code:location.href = "whatEverPage.html";
-
Apr 17, 2007, 13:10 #3
- Join Date
- Nov 2006
- Posts
- 99
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thanks , one more thing where do i add :target="_blank"?
-
Apr 17, 2007, 13:17 #4
- Join Date
- Jan 2005
- Location
- Too far up north
- Posts
- 1,566
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You need to use window.open to open the new page in a new window
-
Apr 17, 2007, 13:28 #5
- Join Date
- Nov 2006
- Posts
- 99
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thanks , i think i know how to do that....
Bookmarks