embed-tag

EMBED vs. OBJECT

南楼画角 提交于 2019-11-26 05:57:53
Which is the right/best tag to use in my HTML file when I want to display the Adobe PDF viewer? Right now I'm using the code below, but there are weird side effects (e.g. it seems to steal the starting focus that I've set to another INPUT text box; it doesn't seem to play real well with the jQueryUI Resizeable class; etc.) <embed src="abc.pdf" type="application/pdf" /> Could I even do the same thing with the OBJECT tag? Are there advantages/disadvantages to using one tag vs. the other? OBJECT vs. EMBED - why not always use embed? Bottom line: OBJECT is Good, EMBED is Old. Beside's IE's PARAM

<embed> vs. <object>

浪子不回头ぞ 提交于 2019-11-26 00:57:46
问题 Which is the right/best tag to use in my HTML file when I want to display the Adobe PDF viewer? Right now I\'m using the code below, but there are weird side effects (e.g. it seems to steal the starting focus that I\'ve set to another <input> text box; it doesn\'t seem to play real well with the jQueryUI Resizeable class; etc.) <embed src=\"abc.pdf\" type=\"application/pdf\" /> Could I even do the same thing with the <object> tag? Are there advantages/disadvantages to using one tag vs. the