/    Sign up×
Community /Pin to ProfileBookmark

Please help me with this webcheck

I need to redirect users that doesn´t have JavaVM installed to a page were they can install JavaVM.
Can anybody tell me what I´m doing wrong?

This is the script I´m trying to use:


———————————————————————-

<script language=”javascript”>

function MSjavaVM()

{
if (bMSIE)
{
var buildIncrement = getBuildIncrement();

parseInt(buildIncrement, 10);
if (buildIncrement >= 2925)
{
javaVM = “ok”;
}
else
{
window.location = “installJavaVM.htm”;
}

</script>
———————————————————————-

Thanks in advance for any help!

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@brendandonhueMay 23.2003 — <script language="javascript">

if (navigator.javaEnabled() == true)

{}

else {document.location = "http://java.sun.com"}

</script>
Copy linkTweet thisAlerts:
@CharlesMay 23.2003 — [font=georgia]That should be

[font=monospace]<script type="text/javascript">

if (!navigator.javaEnabled) top.location.replace('http://java.sun.com/')

</script>[/font][/font]
Copy linkTweet thisAlerts:
@fknauthorMay 23.2003 — Thank you Charles, but I don´t mean java enable...

You can have java enabled without having JavaVirtualMachine installed.

I need to redirect browsers that doesn´t have MSJava Virtual Machine installed to a page were they can get it.

If you help me with this one, I will owe you big time! Because I have searched the web from w3.org to Disneyland and from Microsoft and back to Disneyland without finding an answer.
Copy linkTweet thisAlerts:
@brendandonhueMay 23.2003 — JavaScript does not have the ability to tell if they have downloaded a program or plugin (except for some un-standard hacks).
×

Success!

Help @fkn spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...