Jump to content

CSS button ?


KYKK

Recommended Posts

This doesn't have to do with CSS, it's HTML and Javascript.Not the best practice, but here you go.Open a link in a new window:<input type="button" onclick="window.open('http://www.google.com','newWin','width=300,height=300')" value="Click me!">Open a link in a new tab (depends on browser, it may open in a window in older browsers)<input type="button" onclick="location.href='http://www.google.com'" value="Click me!">Reload the page:<input type="button" onclick="location.reload()" value="Click me!">

Link to comment
Share on other sites

ummm im doing <a href="About.html#5"onclick="location.reload()">Memeber List</a>but it don't work.. do i need to upload it to a website to get it work ? or i do a href="About.html#5" wrok ?

Link to comment
Share on other sites

The only time I ever see an <a> element have an onclick handler is when the href is void. Having a valid href AND an onclick handler that sets a location just doesn't seem right. You originally asked about a button, not an anchor. This is just weird. What are you trying to accomplish?

Link to comment
Share on other sites

OK, I'll take a guess. You want to make a link open in a new tab.You can do this (only in XHTML Transitional):<a href="About.html#5" target="_blank">Member list</a>This will open it in a window instead of a tab:<a href="javascript:void(0);" onclick="window.open('About.html#5','newWin','width=300,height=300')">Member list</a>

Link to comment
Share on other sites

um... ok.... i forgot that some IE don;t have tab .... i will try other things thanks anyway..btw that pop 2 window java script:void(0);and the one that i want....i don't want to start a new thread so..i want to know how to auto overflow http://www.w3schools.com/Css/tryit.asp?fil...trycss_overflowyou see how that scoll how do i make it so it scoll on it own like the one onhttp://bsmcommunity.net/modules.php?name=Forumsat the very bottom you see it keep scolling on it own how do i make itauto is auto make a scoll bar how i make it auto scoll ?\thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...