/    Sign up×
Community /Pin to ProfileBookmark

Javascript View Source

I have a question about the view source function i use.

function vs(){
window.location=”view-source:”+window.location
}

This used to work in IE but all of a sudden it does not work.
I was not sure if it was IE or my computer settings, so i tried it
with firefox and sure enough it works.

I find this little function useful and would like to continue using it but if its not going to work in IE then i must drop it (we are in a controlled environment where all users have IE, and nothing else.T his is just for a intranet).

I guess im just curious if anyone knows if IE has cracked down on this. Of all the things that they could fix, it was this.

Any way any information on this would be great.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 10.2005 — Works in IE5 and 5.5 but not in 6 (apparently)
×

Success!

Help @lmf232s 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...