Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Closed Thread
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-11-2012, 11:57 AM   PM User | #1
Shaqcoulter
New to the CF scene

 
Join Date: Oct 2012
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
Shaqcoulter is an unknown quantity at this point
Unhappy All I want is a clickable link, not an InputType = _____?!

Hi there, thanks for stopping by.
This is probably the stupidest question in the history of questions, but all I want is a clickable link, not an Input type=Text/Button/Checkbox. It's so frustrating because my knowledge is so limited and I know theres a pisseasy answer right around the corner. It's a toggle fullscreen link, but I don't want it to be a button.

Here is what I have



<head>

<script type="text/javascript">
function toggleFullScreen() {
if ((document.fullScreenElement && document.fullScreenElement !== null) ||
(!document.mozFullScreen && !document.webkitIsFullScreen)) {
if (document.documentElement.requestFullScreen) {
document.documentElement.requestFullScreen();
} else if (document.documentElement.mozRequestFullScreen) {
document.documentElement.mozRequestFullScreen();
} else if (document.documentElement.webkitRequestFullScreen) {
document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
}
} else {
if (document.cancelFullScreen) {
document.cancelFullScreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
}
}
}
</script>


</head>


<body>

<input type="button" value="First Time?" onclick="toggleFullScreen()">

</body>


All I want is for the text to be a link, not a button.

Thanks so much
Shaqcoulter is offline  
Closed Thread

Bookmarks

Tags
html, input type, javascript, onclick, text

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:40 AM.


Advertisement
Log in to turn off these ads.