Toggle navigation
All Forums
Recent Posts
Sign In
Adding "welcome safari user" to your web page
Jump to First Reply
jeffx342
Posted:
January 19, 2004 6:25PM
in
Genius Bar
edited January 2014
How can I add welcome safari logo onto my web page?
Comments
Reply 1 of 2
ghost_user_name
Posts:
22,667
member
January 19, 2004 6:45PM
You can do it with either PHP or JavaScript by sniffing out the user agent.
Code:
<script language="javascript" type="text/javascript">
<!-- if (navigator.userAgent.indexOf('Safari') != '-1') {
document.write("Welcome Safari user!")
} //-->
</script>
BTW,
Google
is your friend.
0
Likes
0
Dislikes
0
Informatives
Reply 2 of 2
mattjohndrow
Posts:
1,618
member
January 20, 2004 2:55PM
it's the exact same code for JS AND PHP?!
cool
0
Likes
0
Dislikes
0
Informatives
Sign In
or
Register
to comment.
Comments
<script language="javascript" type="text/javascript">
<!-- if (navigator.userAgent.indexOf('Safari') != '-1') {
document.write("Welcome Safari user!")
} //-->
</script>
BTW, Google is your friend.
cool