View Single Post
Old 10-11-2012, 11:12 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   Reply With Quote